/**
 * Created by xnr on 20/2/24.
 */


import * as customer from './customer'
//图片上传
import * as uploadimg from './uploadimg'
//我的工种
import * as worker from './worker'
//消息
import * as mnews from './mnews'
//信用分
import * as credit from './credit'
//我的项目
import * as project from './project'
//支付
import * as play from './play'
//评价
import * as evaluation from './evaluation'
//排队
import * as reserve from './reserve'
//公用
import * as common from './common'
const apiObj = {
    customer,
    uploadimg,
    worker,
    mnews,
    credit,
    common,
    project,
    play,
    evaluation,
	reserve
}

const install = function(Vue) {
    if (install.installed) return
    install.installed = true
    Object.defineProperties(Vue.prototype, {
        $api: {
            get() {
                return apiObj
            }
        }
    })
}
export default {
    install
}